package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbCommonReceiver", description="客户收件信息实体类")
@TableName(value = "tb_common_receiver")
public class TbCommonReceiver implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收件信息ID")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "收件人姓名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "手机")
    @TableField(value = "phone_num")
    private String phoneNum;

    @ApiModelProperty(value = "收件地区(省市区)")
    @TableField(value = "eare")
    private String eare;

    @ApiModelProperty(value = "详细地址")
    @TableField(value = "detail_addr")
    private String detailAddr;

    @ApiModelProperty(value = "是否是默认值")
    @TableField(value = "isdefault")
    private String isdefault;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDate addtime;


}
